package com.itheima.pojo;

import lombok.*;

/*@Getter
@Setter
@ToString
@EqualsAndHashCode   // 实现equals和hashCode方法*/

@Data  // 实现get、set、toString、equals、hashCode方法
@AllArgsConstructor
@NoArgsConstructor

public class User {
    private int id;
    private String username;
    private short age;
    private String gender;


/*
    public User() {
    }

    public User(int id, String username, short age, String gender) {
        this.id = id;
        this.username = username;
        this.age = age;
        this.gender = gender;
    }

    *//**
     * 获取
     * @return id
     *//*
    public int getId() {
        return id;
    }

    *//**
     * 设置
     * @param id
     *//*
    public void setId(int id) {
        this.id = id;
    }

    *//**
     * 获取
     * @return username
     *//*
    public String getUsername() {
        return username;
    }

    *//**
     * 设置
     * @param username
     *//*
    public void setUsername(String username) {
        this.username = username;
    }

    *//**
     * 获取
     * @return age
     *//*
    public int getAge() {
        return age;
    }

    *//**
     * 设置
     * @param age
     *//*
    public void setAge(short age) {
        this.age = age;
    }

    *//**
     * 获取
     * @return gender
     *//*
    public String getGender() {
        return gender;
    }

    *//**
     * 设置
     * @param gender
     *//*
    public void setGender(String gender) {
        this.gender = gender;
    }

    public String toString() {
        return "User{id = " + id + ", username = " + username + ", age = " + age + ", gender = " + gender + "}";
    }*/
}
